@extends('layouts.main')

@section('title', 'Add - Inspiring')

@section('sidebar')
@stop

@section('content')

    <div class="am-g">
        <div class="am-u-lg-6 am-u-md-8 am-u-sm-centered">
            <h3>发布</h3>
            <?php $message = Session::get('message'); ?>
            <?php if ($message) { ?>
            <div class="am-alert am-alert-success" data-am-alert>
                <button type="button" class="am-close">&times;</button>
                <p>{{ $message }}</p>
            </div>
            <?php } ?>
            <hr>
            <form method="post" action="{{ $_SERVER['REQUEST_URI'] }}" class="am-form">
                <label for="title">文本:</label>
                <textarea id="title" name="title" rows="10" ></textarea>
                <br>
                <label for="tag">标签:</label>
                <input type="text" name="tag" id="tag" value="" />
                <br>
                <div class="am-cf">
                    <input type="submit" name="" value="提交^_^?" class="am-btn am-btn-primary am-btn-sm am-fl">
                </div>
            </form>


        </div>
    </div>
@stop

@section('css')
    <link rel="stylesheet" href="{{static_path('plug/select2/select2.min.css')}}"/>
@stop

@section('js')
    <script src="{{ static_path('plug/select2/select2.min.js') }}"></script>
    <script type="text/javascript">
        //$('select').select2();
    </script>
@stop